
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="public@head"/>

</head>
<body>
<include file="public@header"/>

<main>
    <div class="container">
        <div class="main">

            <include file="public@left"/>

            <div class="main_right">
                <div class="dqwz_title hidden-xs"><span>新闻资讯</span></div>
                <div class="dqwz_contect">
                    <ul class="news_ul1">
                        <php>
                            $where= function($query){
                            $query->whereTime('post.create_time','>=',0);
                            };
                            $page=[
                            'list_rows'=>10,
                            'next'=>'下一页',
                            'prev'=>'上一页'
                            ];
                        </php>


                        <portal:articles item="vo" where="$where" order="post.list_order,post.create_time DESC" page="$page" relation="categorie" categoryIds="$category.id" returnVarName="articles_data">


                        <li>
                            <a href="/newsdetail/{$vo['id']}">

                                <if $vo.more.thumbnail >
                                    <div class="news_B"><div class="news_img tr-10" style="background-image: url({:cmf_get_image_preview_url($vo.more.thumbnail)});"></div></div>

                                    <else/>

                                    <div class="news_B"><div class="news_img tr-10" style="background-image: url(__INDEX__/images/gsjj_img.jpg);"></div></div>

                                </if>


                                <div class="news_p tr-04">{$vo.post_title}</div>
                                <div class="news_txt"><p>{:mb_substr($vo['post_excerpt'],0,160,"utf-8")}…</p></div>
                            </a>
                        </li>

                        </portal:articles>
                    </ul>
                    <div class="list_page page_group">
                        <ul>
                            <page/>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</main>

<include file='public@footer'/>

</body>
</html>